package com.whfc.quality.param;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2020-07-30 19:08
 */
@Data
public class QualityPartEditParam implements Serializable {


    /**
     * 部位ID
     */
    @NotNull
    private Integer partId;
    /**
     * 部位编码
     */
    @NotEmpty
    @Size(min = 1,max = 4,message = "编码格式不能大于4位")
    private String code;
    /**
     * 部位名称
     */
    @NotEmpty
    @Size(min = 1,max = 30,message = "部位名称不能超过30位")
    private String name;


}
